<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="../sample.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="../fckeditor.gif" type="image/x-icon" />
<script type="text/javascript">
	function FCKeditor_OnComplete(editorInstance) {
		var oCombo = document.getElementById('cmbSkins');

		// Get the active skin.
		var sSkin = editorInstance.Config['SkinPath'];
		sSkin = sSkin.match(/[^\/]+(?=\/$)/g);

		oCombo.value = sSkin;
		oCombo.style.visibility = '';
	}

	function ChangeSkin(skinName) {
		window.location.href = window.location.pathname + "?skin=" + skinName;
	}
</script>

</head>
<body>
<s:form method="POST" action="saveSynopsis">
	
	<FCK:editor instanceName="synopsis.synopsis" width="1000" height="400" value="${synopsis.synopsis}">
		<jsp:body>
               <FCK:config SkinPath="${skin}" />
            </jsp:body>
	</FCK:editor>

	<input type="hidden" name="synopsis.id" value="${synopsis.id}" />
	<s:submit name="提交" label="提交" />
</s:form>
</body>
</html>